<template>
  <div class="ui-warning">
    <div class="ui-warning-box">
      <img
        src="//cform-sensetime.oss-cn-hangzhou.aliyuncs.com/stchart/icon-warning-frame-01.svg"
        class="ui-warning-box-border ui-warning-box-border-top"
      />
      <img
        src="//cform-sensetime.oss-cn-hangzhou.aliyuncs.com/stchart/icon-warning-frame-02.svg"
        class="ui-warning-box-border ui-warning-box-border-bottom"
      />
      <dl>
        <dt>
          <svg class="icon" aria-hidden="true">
            <use xlink:href="#icon-gaojing1" />
          </svg>
          人员警告
        </dt>
        <dd>
          <div class="ui-warning-box-photo">
            <img src="//cform-sensetime.oss-cn-hangzhou.aliyuncs.com/stchart/photo-01.png" alt />
            <img src="//cform-sensetime.oss-cn-hangzhou.aliyuncs.com/stchart/photo-02.png" alt />
            <em>99.9%</em>
          </div>
          <ul>
            <li>
              <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-yonghu" />
              </svg>
              <span>高远方</span>
            </li>
            <li>
              <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-zuobiao1" />
              </svg>
              <span>深圳湾一楼…西南34栋201</span>
            </li>
            <li>
              <svg class="icon" aria-hidden="true">
                <use xlink:href="#icon-shijian" />
              </svg>
              <span>2019-05-19 14:34:12</span>
            </li>
          </ul>
        </dd>
      </dl>
    </div>
  </div>
</template>

<script>
/*eslint-disable*/
import "../iconfont.js";
export default {
  props: {
    height: {
      type: Number,
      default: 0
    }
  }
};
</script>

<style>
.ui-warning-box .icon {
  width: 16px;
  height: 16px;
  vertical-align: -2.4px;
  fill: currentColor;
  overflow: hidden;
}
.ui-warning-box {
  color: #fff;
  width: 424px;
  margin: 0 auto;
  background-color: rgba(0, 0, 0, 0.54);
  position: relative;
  padding: 13px 16px;
}
.ui-warning-box::before {
  content: "";
  position: absolute;
  left: 40px;
  right: 0;
  top: 0;
  height: 1px;
  background-color: rgba(215, 24, 42, 0.5);
}
.ui-warning-box::after {
  content: "";
  position: absolute;
  left: 40px;
  right: 0;
  bottom: 0;
  height: 1px;
  background-color: rgba(215, 24, 42, 0.5);
}
.ui-warning-box dt {
  font-size: 14px;
  font-family: "PingFang SC Regular";
  font-weight: 500;
  color: rgba(215, 24, 42, 1);
  line-height: 20px;
  padding-bottom: 10px;
}
.ui-warning-box dt .icon {
  color: rgba(215, 24, 42, 1);
}
.ui-warning-box-border {
  position: absolute;
  left: 0;
  height: 17px;
}
.ui-warning-box-border-top {
  top: 0;
}
.ui-warning-box-border-bottom {
  bottom: 0;
}
.ui-warning-box-photo {
  position: relative;
}
.ui-warning-box-photo img {
  width: 90px;
  height: 120px;
  border: 2px solid rgba(255, 255, 255, 1);
  box-sizing: border-box;
  margin-right: 4px;
}
.ui-warning-box-photo em {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 50px;
  line-height: 24px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 1px;
  border: 1px solid rgba(215, 24, 42, 1);
  text-align: center;
  transform: translate(-50%, -50%);

  font-size: 14px;
  font-family: DINPro;
  font-weight: 500;
  color: rgba(215, 24, 42, 1);
  line-height: 18px;
}
.ui-warning-box dd {
  display: flex;
  height: 130px;
  align-items: center;
}
.ui-warning-box dd ul {
  flex: 1;
  list-style-type: none;
  margin: 0 0 0 12px;
  padding: 0;
}
.ui-warning-box dd li {
  list-style-type: none;
  margin: 0;
  padding: 0;
  padding-bottom: 16px;
}
.ui-warning-box dd li:last-child {
  padding-bottom: 0;
}
.ui-warning-box dd li .icon {
  color: rgba(255, 255, 255, 0.5);
}
.ui-warning-box dd li span {
  font-size: 14px;
  font-family: "PingFang SC Regular";
  font-weight: 400;
  color: rgba(255, 255, 255, 1);
  line-height: 20px;
}
</style>